import common from '@ohos.app.ability.common';
import { areaInfo } from '../models/areaInfo';
import { nearLinkService } from '../services/nearLinkService';

export class globalData {
  private static _clientToken: string;

  static set clientToken(clientToken: string) {
    this._clientToken = clientToken;
  }

  static get clientToken() {
    return this._clientToken;
  }

  private static _isAdmin: boolean;

  static set isAdmin(isAdmin: boolean) {
    this._isAdmin = isAdmin;
  }

  static get isAdmin() {
    return this._isAdmin;
  }

  private static _logDir: string;

  static set logDir(logDir: string) {
    this._logDir = logDir;
  }

  static get logDir() {
    return this._logDir;
  }

  private static _currentArea: areaInfo;

  static set currentArea(currentArea: areaInfo) {
    this._currentArea = currentArea;
  }

  static get currentArea() {
    return this._currentArea;
  }

  private static _abilityContext: common.UIAbilityContext;

  static set abilityContext(abilityContext: common.UIAbilityContext) {
    this._abilityContext = abilityContext;
  }

  static get abilityContext() {
    return this._abilityContext;
  }

  private static _nearLinkService: nearLinkService;

  static set nearLinkService(nearLinkService: nearLinkService) {
    this._nearLinkService = nearLinkService;
  }

  static get nearLinkService() {
    return this._nearLinkService;
  }
}